﻿//-----------------------------------------------------------------------
// <copyright file="FacetTypes.cs" company="Forebrain Technology, LLC">
//
// Copyright (c) Forebrain Technology, LLC. All rights reserved.
// 
// This source code is released under the Microsoft Public License (Ms-PL).
//
// </copyright>
//-----------------------------------------------------------------------
namespace PivotCollectionTools.Xml
{
    using System;
    using System.Xml.Serialization;

    /// <summary>
    /// The data types of a Facet.
    /// </summary>
    [SerializableAttribute()]
    [XmlType(Namespace = "http://schemas.microsoft.com/collection/metadata/2009")]
    public enum FacetDataType
    {
        /// <summary>
        /// A string facet value.
        /// </summary>
        String,

        /// <summary>
        /// A string facet value that appears in the info panel only. Used for text 
        /// longer than a short sentence, for optimized multi-line display.
        /// </summary>
        LongString,

        /// <summary>
        /// A number facet value.
        /// </summary>
        Number,

        /// <summary>
        /// A DateTime facet value.
        /// </summary>
        DateTime,

        /// <summary>
        /// A hyperlink that appears in the info panel only. Used to link 
        /// to related collection or web-pages.
        /// </summary>
        Link,

        /// <summary>
        /// An individual item in a collection.
        /// </summary>
        [XmlEnumAttribute(".*")]
        Item,
    }
}
